package com.itmg.analyze.jp.model;

import java.io.Serializable;
/**
 *  url参数	getURLPara获得匹配好的url
 * @author Yunhong chen
 * */
public class RakutenAuctionSearchParamModel implements Serializable {
	private static final long serialVersionUID = 1L;
	private String developerId; //developerID
	private String affiliateId; //affiliateId
	private String operation; //使用的API的操作名:	ItemSearch
	private String callBack; //作为JSONP输出的时候的call back函数名
	private String keyword; //检索关键字
	private String version; //版本
	private Integer genreId; //种类ID
	private Integer hits; //每1页的取得件数
	private Integer page; //取得页
	private String sort; //分类
	private Integer minPrice; //最小价格	private Integer maxPrice; //最大价格    private Integer blowFlag;
    private Integer itemType;
    private Integer newFlag;
    private Integer field;
	private Integer availability; //销售可能	private Integer carrier; //经历
	private Integer imageFlag; //商品画像有无标志
	private Integer orFlag; //OR检索标志	private String NGKeyword; //除外关键字
	public RakutenAuctionSearchParamModel() {
	}
	

	public String getDeveloperId() {
		return developerId;
	}


	public void setDeveloperId(String developerId) {
		this.developerId = developerId;
	}


	public String getAffiliateId() {
		return affiliateId;
	}


	public void setAffiliateId(String affiliateId) {
		this.affiliateId = affiliateId;
	}


	public String getOperation() {
		return operation;
	}


	public void setOperation(String operation) {
		this.operation = operation;
	}


	public String getCallBack() {
		return callBack;
	}


	public void setCallBack(String callBack) {
		this.callBack = callBack;
	}


	public String getKeyword() {
		return keyword;
	}


	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}


	public String getVersion() {
		return version;
	}


	public void setVersion(String version) {
		this.version = version;
	}


	public Integer getGenreId() {
		return genreId;
	}


	public void setGenreId(Integer genreId) {
		this.genreId = genreId;
	}


	public Integer getHits() {
		return hits;
	}


	public void setHits(Integer hits) {
		this.hits = hits;
	}


	public Integer getPage() {
		return page;
	}


	public void setPage(Integer page) {
		this.page = page;
	}


	public String getSort() {
		return sort;
	}


	public void setSort(String sort) {
		this.sort = sort;
	}


	public Integer getMinPrice() {
		return minPrice;
	}


	public void setMinPrice(Integer minPrice) {
		this.minPrice = minPrice;
	}


	public Integer getMaxPrice() {
		return maxPrice;
	}


	public void setMaxPrice(Integer maxPrice) {
		this.maxPrice = maxPrice;
	}


	public Integer getBlowFlag() {
		return blowFlag;
	}


	public void setBlowFlag(Integer blowFlag) {
		this.blowFlag = blowFlag;
	}


	public Integer getItemType() {
		return itemType;
	}


	public void setItemType(Integer itemType) {
		this.itemType = itemType;
	}


	public Integer getNewFlag() {
		return newFlag;
	}


	public void setNewFlag(Integer newFlag) {
		this.newFlag = newFlag;
	}


	public Integer getField() {
		return field;
	}


	public void setField(Integer field) {
		this.field = field;
	}


	public Integer getAvailability() {
		return availability;
	}


	public void setAvailability(Integer availability) {
		this.availability = availability;
	}


	public Integer getCarrier() {
		return carrier;
	}


	public void setCarrier(Integer carrier) {
		this.carrier = carrier;
	}


	public Integer getImageFlag() {
		return imageFlag;
	}


	public void setImageFlag(Integer imageFlag) {
		this.imageFlag = imageFlag;
	}


	public Integer getOrFlag() {
		return orFlag;
	}


	public void setOrFlag(Integer orFlag) {
		this.orFlag = orFlag;
	}


	public String getNGKeyword() {
		return NGKeyword;
	}


	public void setNGKeyword(String keyword) {
		NGKeyword = keyword;
	}


	public String getURLPara()
	{
		String url = "";
		if(developerId != null)
		{
			url = url + "?developerId="+developerId;
		}
		if(affiliateId != null)
		{
			url = url + "&affiliateId="+affiliateId;
		}
		if(operation != null)
		{
			url = url + "&operation="+operation;
		}
		if(callBack != null)
		{
			url = url + "&callBack="+callBack;
		}
		if(keyword != null)
		{
			url = url + "&keyword="+keyword;
		}
		if(version != null)
		{
			url = url + "&version="+version;
		}
		if(blowFlag != null)
		{
			url = url + "&blowFlag="+blowFlag;
		}
		if(genreId != null)
		{
			url = url + "&genreId="+genreId;
		}
		if(itemType != null)
		{
			url = url + "&itemType="+itemType;
		}
		if(hits != null)
		{
			url = url + "&hits="+hits;
		}
		if(page != null)
		{
			url = url + "&page="+page;
		}
		if(sort != null)
		{
			url = url + "&sort="+sort;
		}
		if(minPrice != null)
		{
			url = url + "&minPrice="+minPrice;
		}
		if(maxPrice != null)
		{
			url = url + "&maxPrice="+maxPrice;
		}
		if(availability != null)
		{
			url = url + "&availability="+availability;
		}
		if(field != null)
		{
			url = url + "&field="+field;
		}
		if(carrier != null)
		{
			url = url + "&carrier="+carrier;
		}
		if(imageFlag != null)
		{
			url = url + "&imageFlag="+imageFlag;
		}
		if(orFlag != null)
		{
			url = url + "&orFlag="+orFlag;
		}
		if(newFlag != null)
		{
			url = url + "&v="+newFlag;
		}
		if(NGKeyword != null)
		{
			url = url + "&NGKeyword="+NGKeyword;
		}
		return url;
	}
}
